package org.zk.dto;
import org.zk.entity.Goods;

//购买商品时的预订单

public class PreOrders {

    private Long orderNum;//订单号 （uid+goodsID+4位随机数）
    private String imgUrl;
    private String name;
    private Float price;
    private Float balance;//余额

    public PreOrders(){}

    public PreOrders(Goods good){

        this.name = good.getName();
        this.price = good.getPrice();

    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Float getBalance() {
        return balance;
    }

    public void setBalance(Float balance) {
        this.balance = balance;
    }
}
